package cn.neusoft.luofa603.yuejian_29.model;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.converter.scalars.ScalarsConverterFactory;

/**
 * Created by Administrator on 2017/10/img11.
 */

public class BaseModel
{
    public Retrofit gsonRetrofit;
    public Retrofit scalarsRetrofit;
    public Retrofit videoRetrofit;
    public Retrofit collectRetrofit;
    public Retrofit deletecollectRetrofit;
    public BaseModel(){
        gsonRetrofit = new Retrofit.Builder()
                .baseUrl("http://172.24.10.175/workout/api.php/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
        scalarsRetrofit = new Retrofit.Builder()
                .baseUrl("http://172.24.10.175/workout/api.php/")
                .addConverterFactory(ScalarsConverterFactory.create())
                .build();
        videoRetrofit = new Retrofit.Builder()
                .baseUrl("http://115.159.93.244/new18yuejian/api.php/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
        collectRetrofit = new Retrofit.Builder()
                .baseUrl("http://172.24.10.175/workout/api.php/")
                .addConverterFactory(ScalarsConverterFactory.create())
                .build();
        deletecollectRetrofit = new Retrofit.Builder()
                .baseUrl("http://172.24.10.175/workout/api.php/")
                .addConverterFactory(ScalarsConverterFactory.create())
                .build();
    }
}
